//
//  ZqlNavVC.m
//  ZqlChangDian
//
//  Created by 赵乾龙 on 16/5/5.
//  Copyright © 2016年 Mr.zhao. All rights reserved.
//

#import "ZqlNavVC.h"
#import "UIBarButtonItem+ZqlExtension.h"

@implementation ZqlNavVC


- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
    NSInteger count = self.childViewControllers.count;
    if (count >= 1) {
       
        viewController.hidesBottomBarWhenPushed = YES;
        viewController.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImageName:@"navigationbar_back_withtext" target:self action:@selector(pop)];
    }
    [super pushViewController:viewController animated:YES];
}

- (void)pop{
    [self popViewControllerAnimated:YES];
}


@end
